/**
 * @author xxxx.xx
 * @time 2021-12-16 9:36 AM
 * @description 项目的接口定义
 */
import Ajax from './Ajax'

/**
 * 获取采购订单列表接口
 * @param {*} params 
 * @returns 
 */
export const purchaseListApi = params => {
    return Ajax({
        url: '/purchase/list',
        method: 'GET',
        params
    })
}

/**
 * 采购流程接口
 * @param {*} data 
 * @returns 
 */
export const purchaseFlowApi = data => {
    return Ajax({
        url: '/purchase/flow',
        data
    })
}

/**
 * 获取详情信息接口
 * @param {*} id 采购编码
 * @returns 
 */
export const purchaseDetailApi = id => {
    return Ajax({
        url: '/purchase/info',
        method: 'GET',
        params: {id}
    })
}